<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>注册界面</title>
<style>
body{
    padding:0;
    margin:0;
    background-color: #0fd2de;
}
.main{
    width:55%;
    height:430px;
    margin:20px auto;
    background-color: blueviolet;
}
.main .main_left{
    width:35%;
    height:100%;
    background-color:#ff4268;
    float:left;
}
.main .main_right{
    width:65%;
    height:100%;
    background-color: white;
    float:right;
}
.main .main_right h1{
    text-align: center;
}
form{
    padding-left: 20px;
    line-height:45px;
}
.a1{
    width:70%;
    height:26px;
}
.zcann{
    width:87%;
    height:35px;
    background-color:#da1a40;
    border-radius: 20px;
    border: none;
    margin-top: 20px;
}
.main .main_right p{
    float:right;
    padding-right:20px;
}
.title{
  margin-top:75px;
font-size:30px;
  text-align: center;
}
p a{
  color:black;
  text-decoration: none;  
}
h3{
color:green;
margin:0;
    padding-top: 200px;

}
</style>
<script>
    function check(){
    var a1=document.getElementById('password');
    var a2=document.getElementById('password1');
     if(a1.value!=a2.value){
        alert('你输入的两次密码不一致!请重新输入');
        a2.style.background="red";
        return false;
     }
    }
    onload=function(){
    var fhjg=document.getElementById('fhjg').innerHTML;
    if(fhjg!=""){
    alert(fhjg);
    }
    
    }


</script>
</head>
<body>
<!-----------导入hread.jsp--------------->
<%@include file="hread.jsp" %>
 <p class=title>问答注册系统</p>
    <div class=main>
    <font color=red id=fhjg  >${fhjg}</font>
        <div class=main_left></div>
        <div class=main_right>
            <h1>sign</h1>
           
            <form action="sign.do" method="POST" onsubmit="return check()">
                用&nbsp;&nbsp;户&nbsp;&nbsp;名：<input type=text class=a1 name=username size="20" required placeholder="请输入您要注册的用户名" /><br/>
                 密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：<input type="password"class=a1  name=password size="20" id=password required placeholder="请输入您要注册的密码" /><br/>
                密码确认：<input type="password" class=a1 name=password1 size="20" id=password1 required placeholder="再次输入密码" /><br/>
               邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱：<input type=email class=a1 name=email size="20" required placeholder="请输入您要注册的邮箱地址" /><br/>
                <input type="submit" class=zcann value="注册"  /><br/>
                <p>点我返回登录-> <a href="login.jsp">登录</a></p>
            </form>
        </div>
    </div>
</body>
</html>